package com.kili.file.config.elect;


import java.lang.annotation.*;

/**
 * @author fenny
 * @since 2019/07/24
 */
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DynamicElect {

    /**
     * group
     */
    String group() default "default";

    /**
     * Parameter key
     */
    String key() default "target";

    /**
     * get parameter mode
     */
    DynamicElectMode mode() default DynamicElectMode.PARAMETER;

    /**
     * parameter source mode ,different mode for elect such as x-form-url-encode
     *
     * @author fenny
     * @since 2019/07/24
     */
    enum DynamicElectMode {

        /**
         * request.getParameter(value)
         */
        PARAMETER

    }
}
